﻿using PhuLeBooze._Global;
using PhuLeBussinessObject.Core;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;
using System.Web.Script.Serialization;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace PhuLeBooze
{
    public partial class productchecking : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            IList<CListData> siteMeassage = new CCore().GetListData("SiteMessage");
            string output = new JavaScriptSerializer().Serialize(siteMeassage);
            StringBuilder Result = new StringBuilder();

            Result.AppendFormat("var Site_Message={0};\n", output);

            Page.ClientScript.RegisterClientScriptBlock(Page.GetType(), "SiteMessage",
                              Result.ToString(), true);

        }
    }
}